﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;

namespace Conexion
{
    public class ClientTCP
    {
        public static TcpClient obtenerTcpClient(string ip, int puerto)
        {
            IPAddress address = IPAddress.Parse(ip);
            IPEndPoint ipe = new IPEndPoint(address, puerto);
            TcpClient client = new TcpClient();
            client.Connect(ipe);
            return client;
        }
    }
}
